*%-------------------------------------------------------------------------
*% GPD File Name and version number
*%-------------------------------------------------------------------------
*GPDFileName: "hpc3055f.gpd"
*GPDSpecVersion: "1.0"
*GPDFileVersion: "053.2504"


*%-------------------------------------------------------------------------
*% GPD files to include.
*%-------------------------------------------------------------------------
*Include: "stdnames.gpd"
*Include: "hpzsmlhn.gpd"

*Feature: RESDLL
{
    *Name: "resource dll files"
    *ConcealFromUI?: TRUE

    *Option: STRRESSEC
    {
        *Name: "hpzstlhn.dll"
    }

}


*%-------------------------------------------------------------------------
*% This is the same model name in the .inf file
*%-------------------------------------------------------------------------
*ModelName: "hp LaserJet 3055 PCL 5e"

*%-------------------------------------------------------------------------
*% Print rate metrics
*%-------------------------------------------------------------------------
*PrintRate: 19
*PrintRatePPM: 19
*PrintRateUnit: PPM
*PrinterType: PAGE
*MaxCopies: 9999

*%-------------------------------------------------------------------------
*% The Unidriver uses 1200 as the Master Units.
*%-------------------------------------------------------------------------
*MasterUnits: PAIR(1200, 1200)

*FontCartSlots: 0

*%-------------------------------------------------------------------------
*% OEM Custom Data
*%-------------------------------------------------------------------------
*Macros: OEM_Custom_Data_Tags
{
OEMDATA_DITHER_600DPI_106LPI_DATA: "[HPDither]235, 226, 216,  32,  23,  10,  79, 173, 233, 223, 214,  30,  20,   7,  77, 171,245, 254, 207,  46,   2,   3,  71, 179, 242, 251, 204,  42,   2,   2,  69, 178,187, 197, 141, 131,  64,  57,  97, 114, 185, 195, 139, 130,  62,  54,  96, 112,89,  82, 126, 145, 160, 153, 124, 104,  87,  80, 125, 143, 159, 151, 122, 102,18,   6,  75, 168, 230, 221, 211,  28,  12,   4,  73, 166, 228, 218, 209,  25,2,   2,  67, 176, 240, 249, 202,  40,   1,   2,  65, 175, 237, 248, 199,  35,60,  51,  95, 109, 183, 192, 137, 134,  59,  48,  93, 106, 181, 190, 135, 132, 164, 157, 119, 100,  92,  86, 129, 149, 162, 155, 117,  99,  91,  84, 128, 147,231, 222, 212,  29,  19,   7,  76, 169, 234, 224, 215,  31,  22,   9,  78, 172, 241, 251, 203,  41,   2,   2,  68, 177, 243, 253, 205,  44,   2,   3,  70, 179, 184, 194, 138, 129,  61,  52,  95, 111, 186, 196, 140, 130,  63,  56,  97, 112, 87 , 79, 125, 142, 158, 150, 121, 101,  88,  81, 126, 144, 160, 152, 123, 103, 12 ,  3,  72, 165, 227, 217, 208,  24,  16,   5,  73, 167, 229, 220, 210,  26, 1,   2,  65, 174, 236, 247, 198,  34,   2,   2,  66, 176, 239, 249, 201,  37, 58 , 48 , 93, 105, 180, 189, 135, 132,  60,  50,  94, 108, 182, 191, 136, 133, 161 ,154, 116,  98,  90,  83, 127, 146, 163, 156, 118,  99,  92,  85, 128, 148[/HPDither]"
}
EXTERN_GLOBAL: *OEMCustomData: =OEMDATA_DITHER_600DPI_106LPI_DATA

*%------------------------------------------------------------------------
*% DOC_PROP Standard features section
*%------------------------------------------------------------------------
*%-------------------------------------------------------------------------
*% Resolution
*%-------------------------------------------------------------------------


*Feature: Resolution
{
    *rcNameID: =IDS_RESOLUTION_DISPLAY
    *DefaultOption: 600dpi
    *Option: 600dpi
    {
        *rcNameID: =IDS_600DPI_RES
        *DPI: PAIR(600, 600)
        *TextDPI: PAIR(600, 600)
        *MinStripBlankPixels: 32
        EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
        *SpotDiameter: 100
        
        *Command: CmdBeginRaster
        {
            *Cmd: "<1B>*r1A"
            *%*Cmd: "<1B>*v7S<1B>*r1A"              *%  Use this for Color PCL5
        }

        *Command: CmdEndRaster
        {
            *Cmd: "<1B>*rB"
            *%*Cmd: "<1B>*rC"                       *%  Use this for Color PCL5
        }

        *Command: CmdSendBlockData 
        {
            *Cmd : "<1B>*b" %d{NumOfDataBytes}"W"
        }


        *Command: CmdSelect
        {
            *Order: JOB_SETUP.190
            *Cmd: "@PJL SET RESOLUTION=600<0A>@PJL SET BITSPERPIXEL=1<0A>"
+           "@PJL ENTER LANGUAGE=PCL<0A0D1B>E<1B>*t600R"
        }
       
    }

}

*%-------------------------------------------------------------------------
*% Paper Sizes
*%-------------------------------------------------------------------------
*Feature: PaperSize
{
    *rcNameID: =IDS_PAPER_SIZE_DISPLAY

    *HelpIndex: 13022

    *DefaultOption: LETTER
    *ConflictPriority: 1

    *Option:16K_NEW                                      *% physical page (9300, 12900 - 7.75" x 10.75")
    {
       *%rcNameID: =IDS_16K_DISPLAY
       *Name: "16K 7.75x10.75 in"
       *PageDimensions: PAIR(9300,12900)
       *switch: Orientation
       {
           *case: PORTRAIT
           {
               *PrintableArea: PAIR(8698,12498)
               *PrintableOrigin: PAIR(300, 200)
               *CursorOrigin: PAIR(300, 200)
               *Command: CmdSelect
               {
                   *Order: DOC_SETUP.20
                   *Cmd: "<1B>&l17A"
               }
               *Command: CmdStartPage
               {
                   *Order: PAGE_SETUP.1
                   *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5219x7499Y<1B>*b0M<0D>"
               }
           }
           *case: LANDSCAPE_CC90
           {
               *PrintableArea: PAIR(8898, 12418)
               *PrintableOrigin: PAIR(200, 240)
               *CursorOrigin: PAIR(200, 12656)
               *Command: CmdSelect
               {
                   *Order: DOC_SETUP.20
                   *Cmd: "<1B>&l17A"
               }
               *Command: CmdStartPage
               {
                   *Order: PAGE_SETUP.1
                   *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t7451x5339Y<1B>*b0M<0D>"
               }
           }
       }
    }

    *Option:16K_195_270
    {
       *%rcNameID: =IDS_16K_DISPLAY
       *Name: "16K 195x270 mm"
       *PageDimensions: PAIR(9213,12756)
       *switch: Orientation
       {
           *case: PORTRAIT
           {
               *PrintableArea: PAIR(8643,12354)
               *PrintableOrigin: PAIR(284, 200)
               *CursorOrigin: PAIR(284, 200)
               *Command: CmdSelect
               {
                   *Order: DOC_SETUP.20
                   *Cmd: "<1B>&l34A"
               }
               *Command: CmdStartPage
               {
                   *Order: PAGE_SETUP.1
                   *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5186x7413Y<1B>*b0M<0D>"
               }
           }
           *case: LANDSCAPE_CC90
           {
               *PrintableArea: PAIR(8811, 12282)
               *PrintableOrigin: PAIR(200, 236)
               *CursorOrigin: PAIR(200, 12518)
               *Command: CmdSelect
               {
                   *Order: DOC_SETUP.20
                   *Cmd: "<1B>&l34A"
               }
               *Command: CmdStartPage
               {
                   *Order: PAGE_SETUP.1
                   *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t7369x5287Y<1B>*b0M<0D>"
               }
           }
       }
    }

    *Option:16K_184_260
    {
       *%rcNameID: =IDS_16K_DISPLAY
       *Name: "16K 184x260 mm"
       *PageDimensions: PAIR(8693,12283)
       *switch: Orientation
       {
           *case: PORTRAIT
           {
               *PrintableArea: PAIR(8123,11879)
               *PrintableOrigin: PAIR(284, 200)
               *CursorOrigin: PAIR(284, 200)
               *Command: CmdSelect
               {
                   *Order: DOC_SETUP.20
                   *Cmd: "<1B>&l89A"
               }
               *Command: CmdStartPage
               {
                   *Order: PAGE_SETUP.1
                   *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t4874x7127Y<1B>*b0M<0D>"
               }
           }
           *case: LANDSCAPE_CC90
           {
               *PrintableArea: PAIR(8291, 11807)
               *PrintableOrigin: PAIR(200, 236)
               *CursorOrigin: PAIR(200, 12045)
               *Command: CmdSelect
               {
                   *Order: DOC_SETUP.20
                   *Cmd: "<1B>&l89A"
               }
               *Command: CmdStartPage
               {
                   *Order: PAGE_SETUP.1
                   *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t7084x4975Y<1B>*b0M<0D>"
               }
           }
       }
    }


    *Option: A4                                      *% physical page (9920, 14030 - 8.2677" x 11.693")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME

        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(9350, 13598)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l26A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5610x8177Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(9498, 13556)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 13792)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l26A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t8134x5711Y<1B>*b0M<0D>"
                }
            }
        }
    }

    *Option: A5                                      *% physical page (6992, 9920 - 5.8268" x 8.2677")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(6422, 9518)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l25A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t3853x5711Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(6590, 9446)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 9684)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l25A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5668x3954Y<1B>*b0M<0D>"
                }
            }
        }
    }

    *Option: DBL_JAPANESE_POSTCARD_ROTATED          *% physical page (6992, 9448 - 5.8268" x 7.874")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PageDimensions: PAIR(6992, 9448)
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(6422,9046)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l72A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t3853x5428Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(6590, 8974)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 9210)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l72A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5384x3954Y<1B>*b0M<0D>"
                }
            }
        }
    }

    *Option: B5                                      *% B5 (JIS)
    {                                                *% physical page (8598, 12140 - 7.1653" x 10.118")
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(8028, 11738)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l45A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t4817x7043Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(8196, 11666)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 11902)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l45A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t7000x4918Y<1B>*b0M<0D>"
                }
            }
        }
    }
    *Option: B5_ISO                                      *% B5 (ISO)
    {
        *rcNameID: =IDS_B5_DISPLAY
        *PageDimensions: PAIR(8314, 11808)               *% physical page (8314, 11808 - 7.1653" x 10.118")
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(7804, 11406)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l65A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t4685x6844Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
               *PrintableArea: PAIR(7910, 11334)
               *PrintableOrigin: PAIR(200, 236)
               *CursorOrigin: PAIR(200, 11570)
               *Command: CmdSelect
               {
                   *Order: DOC_SETUP.20
                   *Cmd: "<1B>&l65A"
               }
               *Command: CmdStartPage
               {
                   *Order: PAGE_SETUP.1
                   *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t6800x4746Y<1B>*b0M<0D>"
               }
            }
        }
    }

    *Option: ENV_10                                 *% physical page (4948, 11400 - 4.125" x 9.5"))
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Constraints: HPPrintOnBothSidesManually.True
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4346, 10998)
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(300, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l81A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t2608x6599Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4546, 10918)
                *PrintableOrigin: PAIR(200, 240)
                *CursorOrigin: PAIR(200, 11168)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l81A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t6551x2728Y<1B>*b0M<0D>"
                }
            }
        }
    }

    *Option: ENV_B5                                 *% physical page (8314, 11810 - 6.9291" x 9.8425"))
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Constraints: HPPrintOnBothSidesManually.True
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(7742, 11406)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l100A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t4645x6844Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(7910, 11334)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 11570)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l100A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t6800x4746Y<1B>*b0M<0D>"
                }
            }
        }
    }

    *Option: ENV_C5                                 *% physical page (7652, 10818 - 6.3779" x 9.0157"))
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Constraints: HPPrintOnBothSidesManually.True
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(7082, 10414)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l91A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t4249x6248Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(7250, 10342)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 10580)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l91A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t6205x4351Y<1B>*b0M<0D>"
                }
            }
        }
    }

    *Option: ENV_DL                                 *% physical page (5196, 10392 - 4.3307" x 8.6614")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Constraints: HPPrintOnBothSidesManually.True
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4626, 9990)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l90A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t2776x5994Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4794, 9918)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 10154)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l90A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5951x2876Y<1B>*b0M<0D>"
                }
            }
        }
    }

    *Option: ENV_MONARCH                            *% physical page (4648, 9000 - 3.875" x 7.50")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Constraints: HPPrintOnBothSidesManually.True
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4046, 8598)
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(300, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l80A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t2428x5159Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4246, 8518)
                *PrintableOrigin: PAIR(200, 240)
                *CursorOrigin: PAIR(200, 8758)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l80A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5111x2548Y<1B>*b0M<0D>"
                }
            }
        }
    }

    *Option: EXECUTIVE                              *% physical page (8700, 12600 - 7.25" x 10.5"))
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(8098, 12198)
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(300, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l1A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t4859x7319Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(8298, 12118)
                *PrintableOrigin: PAIR(200, 240)
                *CursorOrigin: PAIR(200, 12358)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l1A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t7271x4979Y<1B>*b0M<0D>"
                }
            }
        }
    }

    *Option: 8_5X13                                  *% physical page (10200, 15600 - 8.5" x 13.0"))
    {
        *rcNameID: =IDS_8_5X13_CUSTOM
        *PageDimensions: PAIR(10200,15600)
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(9598, 15188)
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(300, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l10A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5759x9113Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(9798, 15118)
                *PrintableOrigin: PAIR(200, 240)
                *CursorOrigin: PAIR(200, 15358)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l10A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t9071x5879Y<1B>*b0M<0D>"
                }
            }
        }
    }


    *Option: LEGAL                                  *% physical page (10200, 16800 - 8.5" x 14.0"))
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME

        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(9598, 16398)
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(300, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l3A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5759x9839Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(9798, 16318)
                *PrintableOrigin: PAIR(200, 240)
                *CursorOrigin: PAIR(200, 16558)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l3A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t9791x5879Y<1B>*b0M<0D>"
                }
            }
        }
    }

    *Option: LETTER                                 *% physical page (10200, 13200 - 8.5" x 11.0")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(9596, 12796)
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(300, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l2A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5758x7678Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(9796, 12716)
                *PrintableOrigin: PAIR(200, 240)
                *CursorOrigin: PAIR(200, 12960)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l2A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t7630x5878Y<1B>*b0M<0D>"
                }
            }
        }
    }

    *Option: JAPANESE_POSTCARD
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME         *% physical page (4724, 6992 - 3.937" x 5.827")
        *PageDimensions: PAIR(4724, 6992)
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4154, 6590)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l71A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t2492x3954Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4322, 6518)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 6754)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l71A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t3911x2593Y<1B>*b0M<0D>"
                }
            }
        }
    }

    *Option: A6                                      *% physical page (4956, 6996 - 4.13" x 5.83")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PageDimensions: PAIR(4960,6992)
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                
                *PrintableArea: PAIR(4354,6594)
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(-2320, 200) 
                *Command: CmdSelect
                {
                     *Order: DOC_SETUP.20
                     *Cmd: "<1B>&l101A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t2612x3956Y<1B>*b0M<0D>"
                }
            }

            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4554, 6516)
                *PrintableOrigin: PAIR(200, 240)
                *CursorOrigin: PAIR(-2420,16560)    
                *Command: CmdSelect
                {
                     *Order: DOC_SETUP.20
                     *Cmd: "<1B>&l101A"
                }
                *Command: CmdStartPage
                {
                     *Order: PAGE_SETUP.1
                     *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t3910x2732Y<1B>*b0M<0D>"
                }


            }
        }
    } 


    *Option: CUSTOMSIZE
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *MinSize: PAIR(3600,6000)
        *MaxSize: PAIR(14030, 20400) 
        *MaxPrintableWidth: 14030
        *MinLeftMargin: 130
        *CenterPrintable?: FALSE
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *CustCursorOriginX:     %d{((PhysPaperWidth - 10200)/2) + 300}         *%  standard values
                *CustCursorOriginY:     %d{200}
                *CustPrintableOriginX:  %d{300}
                *CustPrintableOriginY:  %d{200}
                *CustPrintableSizeX:    %d{PhysPaperWidth - 602}
                *CustPrintableSizeY:    %d{PhysPaperLength - 402}

                *Command: CmdSelect
                {
                    *%Order: DOC_SETUP.20

*%------------------------------------------------------------------------
*% custom media width and height commands (ESC &f #Xi #Yj)
*% - communicates physical size of custom paper (PageDimensions converted to decipoints)
*%------------------------------------------------------------------------

                    *%Cmd: "<1B>&f" %d{((PhysPaperWidth*720)/1200)} "i" %d{((PhysPaperLength*720)/1200)} "J<1B>&l101A"

		    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l101A"

                }

                *Command: CmdStartPage
                {
                    *%Order: PAGE_SETUP.1
                    *%Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t" %d{((PhysPaperWidth-600)*720)/1200} "x" %d{((PhysPaperLength-400)*720)/1200} "Y<1B>*b0M<0D>"

		    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5760x9840Y<1B>*b0M<0D>"
		    
                }
            }
            *case: LANDSCAPE_CC90
            {
                *CustCursorOriginX:     %d{((PhysPaperWidth - 10200)/2) + 200}         *%  standard values
                *CustCursorOriginY:     %d{16560}
                *CustPrintableOriginX:  %d{200}
                *CustPrintableOriginY:  %d{240}
                *CustPrintableSizeX:    %d{PhysPaperWidth - 402}
                *CustPrintableSizeY:    %d{PhysPaperLength - 482}

                *Command: CmdSelect
                {
                    *%Order: DOC_SETUP.20

*%------------------------------------------------------------------------
*% custom media width and height commands (ESC &f #Xi #Yj)
*% - communicates physical size of custom paper (PageDimensions converted to decipoints)
*%------------------------------------------------------------------------

                    *%Cmd: "<1B>&f" %d{((PhysPaperWidth*720)/1200)} "i" %d{((PhysPaperLength*720)/1200)} "J<1B>&l101A"

                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l101A"
		
                }

                *Command: CmdStartPage
                {
                    *%Order: PAGE_SETUP.1
                    *%Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t" %d{((PhysPaperLength-480)*720)/1200} "x" %d{((PhysPaperWidth-400)*720)/1200} "Y<1B>*b0M<0D>"

                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t9792x5880Y<1B>*b0M<0D>"
		

                }
            }
        }

    }

   
    *%  Unsupported Papers for Allow Scaling From Larger Paper (Virtual Paper Sizes)
    *%  No commands are associated with these
    *%  The paper sizes for this printer are A3, B4 (JIS), 8K and 11x17

    *Option: A3                                     *% physical page (14030, 19842 - 11.693" x 16.535")
    {
         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
         *switch: Orientation
         {
             *case: PORTRAIT
             {
                 *PrintableArea: PAIR(13462, 19442)
                 *PrintableOrigin: PAIR(284, 200)
                 *CursorOrigin: PAIR(284, 200)
             }
             *case: LANDSCAPE_CC90
             {
                 *PrintableArea: PAIR(13630, 19370)
                 *PrintableOrigin: PAIR(200, 236)
                 *CursorOrigin: PAIR(200, 19606)
             }
         }
    }

    *Option: B4                                      *% B4 (JIS) physical page (12140, 17196 - 10.118" x 14.33")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(11572, 16796)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 200)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(11740, 16724)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 16960)
            }
        }
    }

    *Option:8K                                      *% physical page (12900, 18600 - 10.748" x 15.512")
    {
        *rcNameID: =IDS_8K
        *PageDimensions: PAIR(12900,18600)
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(12300, 18200)
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(300, 200)
            }

            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(12500, 18120)
                *PrintableOrigin: PAIR(200, 240)
                *CursorOrigin: PAIR(200, 18360)
            }
        }
    }

    *Option: 11X17                                   *% physical page (13200, 20400 - 11.00" x 17.00")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(12600, 20000)
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(300, 200)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(12800, 19920)
                *PrintableOrigin: PAIR(200, 240)
                *CursorOrigin: PAIR(200, 20160)
            }
        }
    }

    *%  Addition of Unsupported Papers ends here
}



*%-------------------------------------------------------------------------
*% Paper Source - Form to Tray Assignment
*%-------------------------------------------------------------------------
*Feature: InputBin
{
    *rcNameID: =IDS_PAPER_SOURCE            *%=PAPER_SOURCE_DISPLAY
    *HelpIndex: =IDH_UNIDRV_FIRST_PAGE_SOURCE_IS
    *DefaultOption: PrinterSelect
    *ConflictPriority: 3
    *Option: PrinterSelect
    {
        *rcNameID: =IDS_PRINTER_AUTO_SELECT
        *OptionID: 257
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.40
            *Cmd: "<1B>&l7H"
        }
    }

    *Option: ManualFeed
    {
        *rcNameID: =IDS_MANUAL_FEED_IN_TRAY1
        *OptionID: 258
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.40
            *Cmd: "<1B>&l2H"
        }
    }

    *Option: Tray1
    {
        *rcNameID: =IDS_TRAY1
        *OptionID: 259
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.40
            *Cmd: "<1B>&l4H"
        }
    }
}


*%-----------------------------------------------------------
*% Manual Duplex
*%-----------------------------------------------------------
*Feature: ManualDuplex
{
    *rcNameID: =IDS_MANUALDUPLEX             *%1036
    *FeatureType: PRINTER_PROPERTY
    *HelpIndex: =IDH_UNIDRV_ALLOW_MANUAL_DUPLEXING_EC6
    *DefaultOption: True
    *Option: False
    {
        *rcNameID: =IDS_DISABLED_DISPLAY    *%191
    }
    *Option: True
    {
        *rcNameID: =IDS_ENABLED_DISPLAY     *%189
    }
    
}

*%-------------------------------------------------------------------------
*% Installable Option - Memory
*%-------------------------------------------------------------------------
*Feature: Memory
{
    *rcNameID: =IDS_PRINTER_MEMORY
    *HelpIndex: =IDH_UNIDRV_HP5SI_MEM
    *DefaultOption: 32MB

    *Option: 32MB
    {
        *rcNameID: =IDS_32_MB
        *MemoryConfigMB: PAIR(32,6)
    }
}


*%------------------------------------------------------------------------
*% DOC_PROP Custom features section
*%------------------------------------------------------------------------

*%-------------------------------------------------------------------------
*% PrintQuality Group Custom feature
*%-------------------------------------------------------------------------

*%-------------------------------------------------------------------------
*% Feature: HPDocPropResourceData: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*%  The dependency files will include now a .cab file, 
*%  which will contain the help files of all locales supported by the product. 
*%  During the runtime the help file corresponding to the locale of the current user 
*%  the help file is extracted from the .cab file and used.
*%-------------------------------------------------------------------------
*Feature: HPDocPropResourceData
{
    *Name: "HPDocPropResourceData"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: hpzhl3y0.cab 

    *Option: hpzhl3y0.cab       *%Name of the cab file in hpzhlyyq.cab format
    {
        *Name: "hpzhl3y0.cab" 
    }
    
    *Option: hpz_en_3y0.hlp     *%Name of the English help file with the token separator "_"
    {
        *Name: "hpz_en_3y0.hlp"
    }
}

*Feature: PrintQualityGroup
{
     *Name: "PrintQualityGroup"
     *HelpIndex: =IDH_UNIDRV_PRINT_QUALITY_PH3
     *FeatureType: DOC_PROPERTY
     *DefaultOption: PQGroup_1

     *Option: PQGroup_1         *%600 dpi
     {
        *rcNameID: =IDS_600DPI_RES     
     }
     
}

*Feature: HPXMLFileUsed
{
    *Name: "HPXMLFileUsed"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: hpc3055f.xml

    *Option: hpc3055f.xml
    {
        *Name: "hpc3055f.xml"
    }
    
}

*%------------------------------------------------------------------------
*% Custom Features for SmartDuplex
*%------------------------------------------------------------------------
*Feature: HPSmartDuplexSinglePageJob
{
    *Name: "HPSmartDuplexSinglePageJob"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: True
    *Option: True
    {
        *Name: "True"
    }
}

*Feature: HPSmartDuplexOddPageJob
{
    *Name: "HPSmartDuplexOddPageJob"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: True
    *Option: True
    {
        *Name: "True"
    }
}
*%--------------------------------------------------------------------------
*% Custom Feature -- Services Tab
*%--------------------------------------------------------------------------

*Feature: Halftone
{
    *rcNameID: =IDS_HALFTONING_DISPLAY
    *DefaultOption: HPDitherMatrix

    *Option: HPDitherMatrix
    {
        *Name: "HPDitherMatrix"
        *HTCallbackID: 1000
        *HTNumPatterns: 1
        *HTPatternSize: PAIR(16,16)
    }
}


*%-------------------------------------------------------------------------
*%TextAsBlack
*%-------------------------------------------------------------------------
*Feature: TextAsBlack
{
    *rcNameID: =IDS_PRINTALLBLACK
    *FeatureType: DOC_PROPERTY
    *HelpIndex: =IDH_UNIDRV_PRINT_TEXT_BLACK_EC5
    *DefaultOption: False

    *Option: False
    {
        *rcNameID: =IDS_DISABLED_DISPLAY
    }

    *Option: True
    {
        *rcNameID: =IDS_ENABLED_DISPLAY
*Ifdef: WINNT_51
        *Constraints: GraphicsMode.RASTERMODE
*Endif:
    }

}

*%------------------------------------------------------------------------
*% PRN_PROP Custom Features
*%------------------------------------------------------------------------

*%-------------------------------------------------------------------------
*% Custom Feature  - Actual Custom Range
*%-------------------------------------------------------------------------
*Feature: ActualCustomRange
{
    *Name: "Actual Custom Range"
    *ConcealFromUI?: TRUE
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: 215900_355600
    *Option: 215900_355600
    {
        *Name: "215900_355600"
    }
}
*Feature: HPFontInstaller
{
    *Name: "HPFontInstaller"
    *FeatureType: DOC_PROPERTY
    *ConcealFromUI?: TRUE
    *DefaultOption: TRUE
    *Option: TRUE
    {
        *Name: ""
    }
}

*%------------------------------------------------------------------------
*% DOC_PROP Standard features section
*%------------------------------------------------------------------------
*%-------------------------------------------------------------------------
*% Orientation
*% When duplexing with orientation change, the NoPageEject
*% command allows the second side to have a different orientation,
*% but the top margin gets reset.  The <1B>&l1E and NoPageEject are used
*% to get both sides to work with differing orientations.
*%-------------------------------------------------------------------------
*Feature: Orientation
{
    *rcNameID: =IDS_ORIENTATION_DISPLAY
    *DefaultOption: PORTRAIT
    *Option: PORTRAIT
    {
        *rcNameID: =IDS_PORTRAIT_DISPLAY
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.10
            *NoPageEject?: TRUE
            *CallbackID:2
        }
    }
    *Option: LANDSCAPE_CC90
    {
        *rcNameID: =IDS_LANDSCAPE_DISPLAY
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.10
            *NoPageEject?: TRUE
            *CallbackID:2
        }
    }
}

*%--------------------------------------------------------------------------
*% Rotation 180
*%--------------------------------------------------------------------------
*Feature: HPOrientRotate180
{
    *rcNameID: =IDS_ORIENT_ROTATE_180           *%953
    *HelpIndex: 14067
    *DefaultOption: False

    *Option: False
    {
        *rcNameID: =IDS_OFF_DISPLAY
    }
    *Option: True
    {
        *rcNameID: =IDS_ON_DISPLAY
    }
}


*%-------------------------------------------------------------------------
*% Media Type
*%-------------------------------------------------------------------------
*Feature: MediaType
{
    *rcNameID: =IDS_MEDIA_TYPE_DISPLAY
    *HelpIndex: 14100
    *DefaultOption: AUTO
    *ConflictPriority: 2

    *Option: AUTO
    {
        *rcNameID: =IDS_UNSPECIFIED
    }
    *Option: PLAIN
    {
        *rcNameID: =IDS_PLAIN_TYPE
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n6WdPlain"
        }
    }
    *Option: HP_MULTIPURPOSE_PAPER
    {
        *rcNameID: =IDS_MTYPE_MULTIPURPOSE
        *Command: CmdSelect
        {
           *Order: DOC_SETUP.50
           *Cmd: "<1B>&n6WdPlain"
        }
    }

    *Option: HP_OFFICE_PAPER
    {
        *rcNameID: =IDS_MTYPE_OFFICE
        *Command: CmdSelect
        {
           *Order: DOC_SETUP.50
           *Cmd: "<1B>&n6WdPlain"
        }
    }
    *Option: HP_ALL_IN_ONE_PRINTING_PAPER
    {
        *rcNameID: =IDS_MT_ALL_IN_ONE_PAPER 
        *Command: CmdSelect
        {
           *Order: DOC_SETUP.50
           *Cmd: "<1B>&n6WdPlain"
        }
    }
    *Option: HP_LASERJET_PAPER
    {
        *rcNameID: =IDS_MT_HP_LASERJET_PAPER
        *Command: CmdSelect
        {
           *Order: DOC_SETUP.50
           *Cmd: "<1B>&n6W<64>Heavy"
        }
    }
    *Option: HP_PREMIUM_CHOICE_LASERJET_PAPER
    {
        *rcNameID: =IDS_HP_PREMIUM_LASERJET_PAPER
        *Command: CmdSelect
        {
           *Order: DOC_SETUP.50
           *Cmd: "<1B>&n6W<64>Heavy"
        }
    }
    *Option: PREPRINTED
    {
        *rcNameID: =IDS_PREPRINTED_TYPE
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n11WdPreprinted"
        }
    }
    *Option: LETTERHEAD
    {
        *rcNameID: =IDS_LETTERHEAD_TYPE
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n11WdLetterhead"
        }
    }
    *Option: TRANSPARENCY
    {
        *rcNameID: =IDS_TRANSPARENCY_DISPLAY
        *Constraints: HPPrintOnBothSidesManually.True                
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n13WdTransparency"
        }
    }
    *Option: PREPUNCHED
    {
        *rcNameID: =IDS_PREPUNCHED_TYPE
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n11WdPrepunched"
        }
    }
    *Option: LABELS
    {
        *rcNameID: =IDS_LABELS_TYPE
        *Constraints: HPPrintOnBothSidesManually.True        
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n7WdLabels"
        }
    }
    *Option: BOND
    {
        *rcNameID: =IDS_BOND_TYPE
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n5WdBond"
        }
    }
    *Option: RECYCLED
    {
        *rcNameID: =IDS_RECYCLED_TYPE
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n9WdRecycled"
        }
    }
    *Option: COLOR
    {
        *rcNameID: =IDS_COLOR_TYPE
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n6WdColor"
        }
    }
   
    *Option: LIGHT
    {
        *rcNameID: =IDS_MTYPE_HP_LIGHT_75_GM2
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n6W<64>Light"
        }
    }
    *Option: HEAVY
    {
        *rcNameID: =IDS_HEAVY2
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n6W<64>Heavy"
        }
    }
    *Option: CARDSTOCK
    {
        *rcNameID: =IDS_CARDSTOCK_105_176_GM2
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n11WdCard Stock"
        }
    }
    *Option: ENVELOPE
    {
        *rcNameID: =ENVELOPE_DISPLAY
        *Constraints: HPPrintOnBothSidesManually.True
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n9WdEnvelope"
        }
    }
    *Option: ROUGH
    {
        *rcNameID: =IDS_ROUGH_TYPE
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n6WdRough"
        }
    }
    *Option: VELLUM
    {
        *rcNameID: =IDS_VELLUM_TYPE
		*Constraints: HPPrintOnBothSidesManually.True 
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n7WdVellum"
        }
    }
    
}

*%-------------------------------------------------------------------------
*% Economode
*%-------------------------------------------------------------------------
*Feature: Economode
{
    *rcNameID: =IDS_ECONOMODE
    *HelpIndex: 15211
    *DefaultOption: False
    *Option: False
    {
        *rcNameID: =IDS_OFF_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.120
            *Cmd: "@PJL SET ECONOMODE=OFF<0A>"
        }
    }
    *Option: True
    {
        *rcNameID: =IDS_ON_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.120
            *Cmd: "@PJL SET ECONOMODE=ON<0A>"
        }
    }
}


*%------------------------------------------------------------------
*%    Custom Feature - TTAsBitmapsSetting
*%------------------------------------------------------------------
*Feature: TTAsBitmapsSetting
{
    *rcNameID: =IDS_TTASBITMAPS             *%762
    *HelpIndex: =IDH_UNIDRV_TRUETYPE_AS_BITMAP
    *FeatureType: DOC_PROPERTY
    *DefaultOption: TTModeOutline
    *Option: TTModeOutline
    {
        *rcNameID: =IDS_DISABLED_DISPLAY    *%191
    }
    *Option: TTModeBitmap
    {
        *rcNameID: =IDS_ENABLED_DISPLAY     *%189
    }
    
}

*switch: TTAsBitmapsSetting
{
    *case: TTModeBitmap
    {
        *FontFormat: HPPCL_RES
    }
    *case: TTModeOutline
    {
        *FontFormat: HPPCL_OUTLINE
    }
}
*Ifdef: WINNT_51
*Personality: =PERSONALITY_HPGL2


*%-------------------------------------------------------------------------
*%      Graphics Mode: Custom Feature
*%-------------------------------------------------------------------------
*Feature: GraphicsMode
{
    *rcNameID: =IDS_RENDERING_MODE               *%768
    *DefaultOption: RASTERMODE
    *HelpIndex: =IDH_UNIDRV_GRAPHICS_MODE_EC5
    *Option: RASTERMODE
    {
        *rcNameID: =IDS_RENDERMODE_RASTER      *%770
    }
    *Option: HPGL2MODE
    {
        *rcNameID: =IDS_RENDERMODE_VECTOR      *%769
    }
    
    
}
*Endif:
*%-----------------------------------------------------------
*% Ret
*%-----------------------------------------------------------
*Feature: RETChoice
{
    *rcNameID: =IDS_RET                         *%136
    *DefaultOption: True
    *HelpIndex: =IDH_UNIDRV_HP5SI_RET
    *Option: False
    {
        *rcNameID: =IDS_OFF_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.130
            *Cmd: "@PJL SET RET=OFF<0A>"
        }
    }
    *Option: True
    {
        *rcNameID: =IDS_ON_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.130
            *Cmd: "@PJL SET RET=MEDIUM<0A>"
        }
    }
   
}


*%------------------------------------------------------------------------
*% DOC_PROP Custom features section
*%------------------------------------------------------------------------

*%-----------------------------------------------------------------
*% Printer Specific Feature Data - Model Name
*%-----------------------------------------------------------------

*Feature: HPColorMode
{
    *Name: "HPColorMode"
    *ConcealFromUI?: TRUE
    *FeatureType: DOC_PROPERTY
    *DefaultOption: MONOCHROME_MODE

    *Option: MONOCHROME_MODE
    {
        *Name: "Monochrome Mode"
    }
}

*Feature: HPPDLType
{
    *Name: "HPPDLType"
    *ConcealFromUI?: TRUE
    *FeatureType: DOC_PROPERTY
    *DefaultOption: PDL_PCL5

    *Option: PDL_PCL5
    {
        *Name: "PCL 5"
    }
}

*%---------------------------------------------------------------
*%    Custom Feature - Max Resolution
*%---------------------------------------------------------------
*Feature: HPMaxResolution
{
    *Name: "HPMaxResolution"
    *ConcealFromUI?: TRUE
    *FeatureType: DOC_PROPERTY
    *DefaultOption: PDM_600DPI
    *Option: PDM_600DPI
    {
        *Name: "PDM_600DPI"
    }
    *Option: PDM_600DPI
    {
        *Name: "PDM_600DPI"
    }

}
*%-------------------------------------------------------------------------
*% PJL Encoding Custom Features
*%-------------------------------------------------------------------------
*Feature: HPPJLEncoding
{
    *Name: "HPPJLEncoding"
    *ConcealFromUI?: TRUE
    *FeatureType: DOC_PROPERTY
    *DefaultOption: UTF8

    *Option: UTF8
    {
        *Name: "UTF8"
    }
}
*%-------------------------------------------------------------------------
*% Custom Feature  - Job Accounting and Time Stamp
*%-------------------------------------------------------------------------
*Feature: HPJobAccounting
{
    *Name: "HPJobAccounting"
    *ConcealFromUI?:TRUE
    *FeatureType: DOC_PROPERTY
    *Option: HPJOBACCT_JOBACNT
    {
        *Name: "HPJOBACCT_JOBACNT"
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.10
            *CallbackID:=CMDCB_HPJOBACCOUNT
        }
    }
}

*Feature: HPBornOnDate
{
    *Name: "HPBornOnDate"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: HPBOD

    *Option: HPBOD
    {
        *Name: "HPBOD"
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.20
            *CallbackID: =CMDCB_HPBOD
        }
    }
}

*%-------------------------------------------------------------------------
*% Custom Feature - Job by Job Override
*%-------------------------------------------------------------------------
*Feature: HPJobByJobOverride
{
    *Name: "HPJobByJobOverride"
    *ConcealFromUI?: TRUE
    *FeatureType: DOC_PROPERTY
    *DefaultOption: JBJO
    *Option: JBJO
    {
        *Name: "JBJO"
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.40
            *CallbackID:=CMDCB_HPJBJO
        }
    }
}

*%  This feature is used for handling duplicate job names
*%  Single option. Possible values are SWFW and SW

*Feature: HPDuplicateJobNameOverride
{
    *Name: "HPDuplicateJobNameOverride"
  
    *Option: SWFW
    {
        *Name: "SWFW"
    }
}


*Feature: HPConsumerCustomPaper
{
    *Name: "HPConsumerCustomPaper"
    *Option: True
    {
        *Name: "True"
    }
}
 

*%  Manual Duplex custom feature
*%  Specifies the bitmaps and strings for the manual duplex pop-up dialog that comes at print time

*Feature: HPManualDuplexDialogItems
{
    *Name: "HPManualDuplexDialogItems"
    *DefaultOption: InstructionID_01_FACEDOWN-NOROTATE
    
    *Option: InstructionID_01_FACEDOWN-NOROTATE
    {
        *Name:"BitmapID_165_StringID_3313"
    }

    *Option: InstructionID_01_FACEUP-NOROTATE
    {
        *Name:"BitmapID_106_StringID_3886"
    }

    *Option: InstructionID_02_FACEDOWN-NOROTATE
    {
        *Name:"BitmapID_107_StringID_3070"
    }

    *Option: InstructionID_02_FACEUP-NOROTATE
    {
        *Name:"BitmapID_154_StringID_4623"
    }

    *Option: InstructionID_03_FACEDOWN-NOROTATE
    {
        *Name:"BitmapID_109_StringID_3065"
    }

    *Option: InstructionID_03_FACEUP-NOROTATE
    {
        *Name:"BitmapID_109_StringID_3065"
    }
}

*%-----------------------------------------------------------
*% ManualFeed Tray Paper Orientation
*%-----------------------------------------------------------
*Feature: HPManualFeedOrientation
{
    *Name: "HPManualFeedOrientation"
    *DefaultOption: FACEDOWN
    *Option: FACEDOWN
    {
        *Name:"FACEDOWN"
    }


}

*%--------------------------------------------------------------------------------------------
*% HPOutputBinOrientation - should have orientations of all supported output bins
*% If the printer has no selectable outputbins, this feature has only 1 option - FACEUP/FACEDOWN
*% If the printer has selectable outputbins, this feature should have 1 option each for each
*% of the selectable output bins eg Option1-FACEDOWN, Option2-FACEUP
*%--------------------------------------------------------------------------------------------
*Feature: HPOutputBinOrientation
{
    *Name: "HPOutputBinOrientation"
    *DefaultOption: FACEDOWN
    *Option: FACEDOWN
    {
        *Name:"FACEDOWN"
    }
}

*%-----------------------------------------------------------
*% ManualDuplex Dialog Model - (Modeless / Modal)
*%-----------------------------------------------------------
*Feature: HPManualDuplexDialogModel
{
    *Name: "HPManualDuplexDialogModel"
    *DefaultOption: Modeless
    *Option: Modeless
    {
        *Name:"Modeless"
    }
}

*%-----------------------------------------------------------
*% ManualDuplex Page Order - (EvenPagesFirst / OddPagesFirst)
*%-----------------------------------------------------------
*Feature: HPManualDuplexPageOrder
{
    *Name: "HPManualDuplexPageOrder"
    *DefaultOption: EvenPagesFirst
    *Option: EvenPagesFirst
    {
        *Name:"EvenPagesFirst"
    }
}

*%-----------------------------------------------------------
*% ManualDuplex Mapping - (True / False)
*% Should be True only if the Manual Duplex PJL is sent
*%-----------------------------------------------------------
*Feature: HPMapManualFeedToTray1
{
    *Name: "HPMapManualFeedToTray1"
    *DefaultOption: True
    *Option: True
    {
        *Name:"True"
    }
}

*%-----------------------------------------------------------
*% Manual Duplex Dialog Item ID
*%-----------------------------------------------------------
*Feature: HPPrintOnBothSidesManually
{
    *rcNameID: =IDS_MANUALDUPLEX
    *FeatureType: DOC_PROPERTY
    *HelpIndex: =IDH_UNIDRV_PRINT_ON_BOTH_SIDES_MANUAL_EC6
    *ConflictPriority: 5
    *DefaultOption: False

    *Option: False
    {
       *rcNameID: =IDS_OFF_DISPLAY
       *Command: CmdSelect
       {
           *Order: JOB_SETUP.70
           *CallbackID: =CMDCB_MANUALDUPLEX
       }
    }
    *Option: True
    {
       *rcNameID: =IDS_ON_DISPLAY
       *Command: CmdSelect
       {
           *Order: JOB_SETUP.70
           *CallbackID: =CMDCB_MANUALDUPLEX
       }
    }
}


*%------------------------------------------------------------------------
*%    PRN_PROP Custom features section
*%------------------------------------------------------------------------

*%-------------------------------------------------------------------------
*% Custom Feature  - Allow Scaling From Larger Paper
*%-------------------------------------------------------------------------
*%-------------------------------------------------------------------------
*% Feature: HPPrnPropResourceData: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*% The dependency files will include now a .cab file, 
*% which will contain the help files of all locales supported by the product. 
*% During the runtime the help file corresponding to the locale of the current user 
*% the help file is extracted from the .cab file and used.
*%-------------------------------------------------------------------------
*Feature: HPPrnPropResourceData
{
    *Name: "HPPrnPropResourceData"
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: hpzhl3y0.cab

    *Option: hpzhl3y0.cab       *%name of the cab file in hpzhlyyq.cab format
    {
        *Name: "hpzhl3y0.cab" 
    }
    *Option: hpz_en_3y0.hlp     *%name of the English help file with the token separator "_"
    {
        *Name: "hpz_en_3y0.hlp"
    }
}

*Feature: ScaleFromLargePaper
{
    *rcNameID: =IDS_LARGE_PAPER_SUPPORT
    *HelpIndex: 15115
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: Installed
    *Option: NotInstalled
    {
        *rcNameID: =IDS_DISABLED_DISPLAY        *%191
    }
    *Option: Installed
    {
        *rcNameID: =IDS_ENABLED_DISPLAY         *%189
    }
}
*Feature: CombineMediaTypesAndInputBins
{
    *rcNameID: =IDS_COMBINE_SOURCE_TYPE
    *FeatureType: PRINTER_PROPERTY 
    *HelpIndex: =IDH_UNIDRV_COMBINE_SOURCE_TYPE
    *DefaultOption: Installed
    
    *Option: Installed
    {
        *rcNameID: =IDS_ENABLED_DISPLAY
    }
}

*Feature: HPCovers
{

    *Name: "HPCovers"
    *FeatureType: DOC_PROPERTY
    *ConflictPriority: 6
    *DefaultOption: Other_Pages

    *Option: Front_Cover
    {
        *rcNameID: =IDS_FRONT_DOVER
    }

    *Option: First_Page
    {
        *rcNameID: =IDS_STA_FIRST_PAGE
    }

    *Option: Other_Pages
    {
        *rcNameID: =IDS_MEDIA_LB_OTHER_PAGES
    }

    *Option: Last_Page
    {
        *rcNameID: =IDS_LAST_PAGE
    }

    *Option: Back_Cover
    {
        *rcNameID: =IDS_BACK_COVER
    }
    
}

*%-------------------------------------------------------------------------
*% Feature: PSAlignmentFile: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*%  Printer Services component custom feature
*%  PSAlignmentFile
*%  This feature is used to get the name of the Printer Services component DLL
*%-------------------------------------------------------------------------
*Feature: PSAlignmentFile
{
    *Name: "PSAlignmentFile"
    *FeatureType: DOC_PROPERTY
    *Option: HPZLS3Y0
    {
        *Name: "HPZLS3Y0"
    }
}

*%-------------------------------------------------------------------------
*% Showing up of the services tab when connected to a Non TCP/IP port
*%-------------------------------------------------------------------------
*OpenUI *PSServicesOption: PickOne
*DefaultPSServicesOption: HPServiceFileNameEnd
*PSServicesOption HPServiceFileNameEnd/HPServiceFileNameEnd: ""
*CloseUI: *PSServicesOption

*%-------------------------------------------------------------------------
*% Feature: HPSmartHub: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*Feature: HPSmartHub
{

  *Name: "HPSmartHub"
  *FeatureType: DOC_PROPERTY  
  *DefaultOption: Inet_SID_263_BID_514_HID_265

  *Option: Inet_SID_263_BID_514_HID_265                 *%"Select a destination"
  {

     *Name: ""

  }
 

  *Option: Inet_SID_251_BID_514_HID_267                 *%"Product Home Page" was ("Launch Product Support Website")
  {

     *Name: ""

  }

  *Option: Inet_SID_252_BID_514_HID_268                 *%"Product Documentation"
  {

     *Name: ""

  }

  *Option: Inet_SID_253_BID_514_HID_269                 *%"Check for Driver Updates"        
  {

     *Name: ""

  }
   *Option: Inet_SID_279_BID_514_HID_280                 *%"Order supplies"        
  {

     *Name: ""

  }

}



*%-------------------------------------------------------------------------
*% Doc setup commands
*%-------------------------------------------------------------------------
*Command: CmdStartDoc
{
    *Order: DOC_SETUP.1
    *Cmd: "<1B>&u600D<1B>*r0F<1B>*o4W<0A060001>"
}

*%-------------------------------------------------------------------------
*% Job setup commands
*%-------------------------------------------------------------------------
*Command: CmdStartJob
{
    *Order: JOB_SETUP.1
    *Cmd: "<1B>%%-12345X"
}

*Command: CmdEndJob
{
    *Order: JOB_FINISH.1
    *Cmd: "<1B>E<1B>%%-12345X@PJL EOJ<0A><1B>%%-12345X"
}

*Command: CmdCopies
{
    *Order: DOC_SETUP.80
    *Cmd: "<1B>&l" %d[1,999]{NumOfCopies}"X"
}

*CharPosition: BASELINE *% charcter positioning after device font removal
*RotateCoordinate?: TRUE
*RotateRaster?: TRUE
*RotateFont?: TRUE
*TextCaps: LIST(TC_CR_90,TC_UA_ABLE)
*MemoryUsage: LIST(FONT)
*CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
*BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)
*XMoveThreshold: 0
*YMoveThreshold: 0
*XMoveUnit: 600
*YMoveUnit: 600
*Command: CmdXMoveAbsolute { *Cmd : "<1B>*p" %d{(DestX / 2) }"X" }
*Command: CmdXMoveRelRight { *Cmd : "<1B>*p+" %d[0,9600]{max_repeat((DestXRel / 2) )}"X" }
*Command: CmdXMoveRelLeft { *Cmd : "<1B>*p-" %d[0,9600]{max_repeat((DestXRel / 2) )}"X" }
*Command: CmdYMoveAbsolute { *Cmd : "<1B>*p" %d{(DestY / 2) }"Y" }
*Command: CmdYMoveRelDown { *Cmd : "<1B>*p+" %d{(DestYRel / 2) }"Y" }
*Command: CmdYMoveRelUp { *Cmd : "<1B>*p-" %d{(DestYRel / 2) }"Y" }
*Command: CmdCR { *Cmd : "<0D>" }
*Command: CmdLF { *Cmd : "<0A>" }
*Command: CmdFF { *Cmd : "<0C>" }
*Command: CmdBackSpace { *Cmd : "<08>" }
*Command: CmdUniDirectionOn { *Cmd : "<00>" }
*Command: CmdUniDirectionOff { *Cmd : "<00>" }
*Command: CmdPushCursor { *Cmd : "<1B>&f0S" }
*Command: CmdPopCursor { *Cmd : "<1B>&f1S" }
*Command: CmdSetSimpleRotation { *Cmd : "<1B>&a" %d{PrintDirInCCDegrees}"P" }
*EjectPageWithFF?: FALSE
*Command: CmdEnableTIFF4 { *Cmd : "<1B>*b2M" }
*Command: CmdDisableCompression { *Cmd : "<1B>*b0M" }
*Command: CmdEnableDRC { *Cmd : "<1B>*b3M" }
*OutputDataFormat: H_BYTE
*OptimizeLeftBound?: TRUE
*CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
*CursorYAfterSendBlockData: AUTO_INCREMENT

*Command: CmdSetFontID { *Cmd : "<1B>*c" %d{NextFontID}"D" }
*Command: CmdSelectFontID { *Cmd : "<1B>(" %d{CurrentFontID}"X" }
*Command: CmdSetCharCode { *Cmd : "<1B>*c" %d{NextGlyph}"E" }
*Command: CmdUnderlineOn { *Cmd : "<1B>&dD" }
*Command: CmdUnderlineOff { *Cmd : "<1B>&d@" }
*Command: CmdWhiteTextOn { *Cmd : "<1B>*v1o1T" }
*Command: CmdWhiteTextOff { *Cmd : "<1B>*v0o0T" }
*MinGrayFill: 1
*MaxGrayFill: 100
*Command: CmdSetRectWidth { *Cmd : "<1B>*c" %d{(RectXSize / 2) }"A" }
*Command: CmdSetRectHeight { *Cmd : "<1B>*c" %d{(RectYSize / 2) }"B" }
*Command: CmdRectGrayFill { *Cmd : "<1B>*c" %d{GrayPercentage }"g2P" }
*Command: CmdRectWhiteFill { *Cmd : "<1B>*c1P" }
*Command: CmdRectBlackFill { *Cmd : "<1B>*c0P" }








